<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.io.stream.SnoopStream</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.io.stream.SnoopStream";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.io.stream.SnoopStream.html" class="symbol">tango.io.stream.SnoopStream</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: Oct 2007
<p class="sec_header">Author:</p>Kris
<dl>
<dt class="decl">class <a class="symbol _class" name="SnoopInput" href="./htmlsrc/tango.io.stream.SnoopStream.html#L29" kind="class" beg="29" end="140">SnoopInput</a> : InputStream; <a title="Permalink to this symbol" href="#SnoopInput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L29">#</a></dt>
<dd class="ddef">
<div class="summary">Stream to expose call behaviour. By default, activity trace is
        sent to Cerr</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="SnoopInput.this" href="./htmlsrc/tango.io.stream.SnoopStream.html#L40" kind="ctor" beg="40" end="45">this</a><span class="params">(InputStream <em>host</em>, Snoop <em>snoop</em> = null)</span>; <a title="Permalink to this symbol" href="#SnoopInput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">Attach to the provided stream</div></dd>
<dt class="decl">IConduit <a class="symbol _function" name="SnoopInput.conduit" href="./htmlsrc/tango.io.stream.SnoopStream.html#L53" kind="function" beg="53" end="56">conduit</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopInput.conduit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L53">#</a></dt>
<dd class="ddef">
<div class="summary">Return the hosting conduit</div></dd>
<dt class="decl">uint <a class="symbol _function" name="SnoopInput.read" href="./htmlsrc/tango.io.stream.SnoopStream.html#L68" kind="function" beg="68" end="73">read</a><span class="params">(void[] <em>dst</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopInput.read" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L68">#</a></dt>
<dd class="ddef">
<div class="summary">Read from conduit into a target array. The provided dst 
                will be populated with content from the conduit.</div>
Returns the number of bytes read, which may be less than
                requested in dst</dd>
<dt class="decl">void[] <a class="symbol _function" name="SnoopInput.load" href="./htmlsrc/tango.io.stream.SnoopStream.html#L86" kind="function" beg="86" end="91">load</a><span class="params">(void[] <em>dst</em> = null)</span>; <a title="Permalink to this symbol" href="#SnoopInput.load" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L86">#</a></dt>
<dd class="ddef">
<div class="summary">Load the bits from a stream, and return them all in an
                array. The dst array can be provided as an option, which
                will be expanded as necessary to consume the input.</div>
Returns an array representing the content, and throws
                IOException on error</dd>
<dt class="decl">InputStream <a class="symbol _function" name="SnoopInput.clear" href="./htmlsrc/tango.io.stream.SnoopStream.html#L99" kind="function" beg="99" end="104">clear</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopInput.clear" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L99">#</a></dt>
<dd class="ddef">
<div class="summary">Clear any buffered content</div></dd>
<dt class="decl">void <a class="symbol _function" name="SnoopInput.close" href="./htmlsrc/tango.io.stream.SnoopStream.html#L112" kind="function" beg="112" end="116">close</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopInput.close" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L112">#</a></dt>
<dd class="ddef">
<div class="summary">Close the input</div></dd>
<dt class="decl">void <a class="symbol _function" name="SnoopInput.snooper" href="./htmlsrc/tango.io.stream.SnoopStream.html#L124" kind="function" beg="124" end="127">snooper</a><span class="params">(char[] <em>x</em>)</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#SnoopInput.snooper" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L124">#</a></dt>
<dd class="ddef">
<div class="summary">Internal trace handler</div></dd>
<dt class="decl">void <a class="symbol _function" name="SnoopInput.trace" href="./htmlsrc/tango.io.stream.SnoopStream.html#L135" kind="function" beg="135" end="139">trace</a><span class="params">(char[] <em>format</em>, ...)</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#SnoopInput.trace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L135">#</a></dt>
<dd class="ddef">
<div class="summary">Internal trace handler</div></dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="SnoopOutput" href="./htmlsrc/tango.io.stream.SnoopStream.html#L150" kind="class" beg="150" end="257">SnoopOutput</a> : OutputStream; <a title="Permalink to this symbol" href="#SnoopOutput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L150">#</a></dt>
<dd class="ddef">
<div class="summary">Stream to expose call behaviour. By default, activity trace is
        sent to Cerr</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="SnoopOutput.this" href="./htmlsrc/tango.io.stream.SnoopStream.html#L161" kind="ctor" beg="161" end="166">this</a><span class="params">(OutputStream <em>host</em>, Snoop <em>snoop</em> = null)</span>; <a title="Permalink to this symbol" href="#SnoopOutput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L161">#</a></dt>
<dd class="ddef">
<div class="summary">Attach to the provided stream</div></dd>
<dt class="decl">uint <a class="symbol _function" name="SnoopOutput.write" href="./htmlsrc/tango.io.stream.SnoopStream.html#L178" kind="function" beg="178" end="183">write</a><span class="params">(void[] <em>src</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.write" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L178">#</a></dt>
<dd class="ddef">
<div class="summary">Write to conduit from a source array. The provided src
                content will be written to the conduit.</div>
Returns the number of bytes written from src, which may
                be less than the quantity provided</dd>
<dt class="decl">IConduit <a class="symbol _function" name="SnoopOutput.conduit" href="./htmlsrc/tango.io.stream.SnoopStream.html#L191" kind="function" beg="191" end="194">conduit</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.conduit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L191">#</a></dt>
<dd class="ddef">
<div class="summary">Return the hosting conduit</div></dd>
<dt class="decl">OutputStream <a class="symbol _function" name="SnoopOutput.flush" href="./htmlsrc/tango.io.stream.SnoopStream.html#L202" kind="function" beg="202" end="207">flush</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.flush" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L202">#</a></dt>
<dd class="ddef">
<div class="summary">Emit/purge buffered content</div></dd>
<dt class="decl">void <a class="symbol _function" name="SnoopOutput.close" href="./htmlsrc/tango.io.stream.SnoopStream.html#L215" kind="function" beg="215" end="219">close</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.close" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L215">#</a></dt>
<dd class="ddef">
<div class="summary">Close the output</div></dd>
<dt class="decl">OutputStream <a class="symbol _function" name="SnoopOutput.copy" href="./htmlsrc/tango.io.stream.SnoopStream.html#L228" kind="function" beg="228" end="233">copy</a><span class="params">(InputStream <em>src</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.copy" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L228">#</a></dt>
<dd class="ddef">
<div class="summary">Transfer the content of another conduit to this one. Returns
                a reference to this class, or throws IOException on failure.</div></dd>
<dt class="decl">void <a class="symbol _function" name="SnoopOutput.snooper" href="./htmlsrc/tango.io.stream.SnoopStream.html#L241" kind="function" beg="241" end="244">snooper</a><span class="params">(char[] <em>x</em>)</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.snooper" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L241">#</a></dt>
<dd class="ddef">
<div class="summary">Internal trace handler</div></dd>
<dt class="decl">void <a class="symbol _function" name="SnoopOutput.trace" href="./htmlsrc/tango.io.stream.SnoopStream.html#L252" kind="function" beg="252" end="256">trace</a><span class="params">(char[] <em>format</em>, ...)</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#SnoopOutput.trace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.SnoopStream.html#L252">#</a></dt>
<dd class="ddef">
<div class="summary">Internal trace handler</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2007 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:01 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>